package com.jiyun.login.feign;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiyun.pojo.Result;
import com.jiyun.vo.CatalogDto;
import com.jiyun.vo.CourseDto;
import com.jiyun.vo.ResultResopnse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("day09Course")
public interface FeignCourseService {
    @RequestMapping("course/findAllOne")
    Result findAllOne();
    @RequestMapping("course/dianzan")
    Result dianzan( @RequestParam("id") Integer id,@RequestParam("consumerId") Integer consumerId);
    @RequestMapping("course/findAllDate")
    Result findAllDate();
    @RequestMapping("course/findAll")
    Result findAll(@RequestParam(value = "aaa") String aaa,@RequestParam(value = "lib") String Lib );
    @RequestMapping("catalog/findCatalog")
    ResultResopnse findCatalog(@RequestBody CatalogDto catalogDto);
    @RequestMapping("course/xuexi")
    Result xuexi(@RequestParam(value = "catalogId") Integer catalogId, @RequestParam(value = "consumerId")
    Integer consumerId,@RequestParam(value = "courseId") Integer courseId);
    @RequestMapping("course/consumerFindAll1")
    Result consumerFindAll1(@RequestParam(value = "consumerId") Integer consumerId,@RequestParam(value = "courseId") Integer courseId);
    @RequestMapping("course/catalogFindAll1")
    Result catalogFindAll1();
    @RequestMapping("course/findPage")
    Page<CourseDto> findPage(@RequestBody CourseDto courseDto);
}
